<?php

class home extends model {

    function __construct() {
        parent::__construct(Controller::$a_con);
    }

    function get_info_web() {
        return $this->get_Results($this->con->select_query('SELECT * FROM info_web', 'info-web'))[0];
    }

    function login($email, $pass) {
        return $this->con->select_query('SELECT us_id,at_id,us_name FROM users  WHERE us_email="' . $email . '" AND us_pass="' . md5($pass) . '"', 'login');
    }

}
